﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace DisplaySC
{
    public partial class Trend : Form
    {
        public Trend()
        {
            InitializeComponent();
        }

        private void Trend_Load(object sender, EventArgs e)
        {
            this.ShowInTaskbar = false;
            this.FormBorderStyle = FormBorderStyle.None;
            this.StartPosition = FormStartPosition.Manual;
            
            Screen scr = Screen.AllScreens[0];
            if (Screen.AllScreens.Length > 1)
            {
                foreach (Screen item in Screen.AllScreens)
                {
                    if (!item.Primary)
                    {
                        scr = item;
                        //break;
                    }
                }
            }
            
            this.Location = new Point(scr.Bounds.Left, scr.Bounds.Top);
            this.WindowState = FormWindowState.Maximized;
        }        
    }
}
